home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
newlooklib.lha
/
newlook
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-12-24
|
3KB
|
180 lines
# Makefile for the newlook.lib w/ G++ on Amiga machines
# (c)Copyright 1992-93 by Tobias Ferber, All Rights Reserved
#CC= gcc
CC= gccv -pipe
#CFLAGS= -O -Igcc:include/ -Idinclude:amiga30/
CFLAGS= -O -Iinclude:
LIB= newlook.lib
SRCCS=\
smartmem.c \
createborder.c \
createitext.c \
createframe.c \
addgborder.c \
addgtext.c \
addggroupframe.c \
scalebar.c \
createbutton.c \
createarrowbutton.c \
createradiobutton.c \
createpalettebutton.c \
createcheckbox.c \
createcyclebutton.c \
createstrgadget.c \
createslider.c \
createlistview.c \
togglebutton.c \
docyclebutton.c \
setpalettebuttonpen.c \
removegadgetsafely.c \
setgflags.c \
lastgadget.c \
lastborder.c \
lastitext.c \
moveitext.c \
initnewwindow.c
#OBJS= $(subst $(SRCCS) "*.c" "*.o")
OBJS=\
smartmem.o \
createborder.o \
createitext.o \
createframe.o \
addgborder.o \
addgtext.o \
addggroupframe.o \
scalebar.o \
createbutton.o \
createarrowbutton.o \
createradiobutton.o \
createpalettebutton.o \
createcheckbox.o \
createcyclebutton.o \
createstrgadget.o \
createslider.o \
createlistview.o \
togglebutton.o \
docyclebutton.o \
setpalettebuttonpen.o \
removegadgetsafely.o \
setgflags.o \
lastgadget.o \
lastborder.o \
lastitext.o \
moveitext.o \
initnewwindow.o
# *** / ALL / ***
.PHONY: all clean
all: $(LIB)
# *** / OBJS / ***
smartmem.o: smartmem.c
$(CC) $(CFLAGS) -c -o $@ $<
createborder.o: createborder.c
$(CC) $(CFLAGS) -c -o $@ $<
createitext.o: createitext.c
$(CC) $(CFLAGS) -c -o $@ $<
createframe.o: createframe.c
$(CC) $(CFLAGS) -c -o $@ $<
addgborder.o: addgborder.c
$(CC) $(CFLAGS) -c -o $@ $<
addgtext.o: addgtext.c
$(CC) $(CFLAGS) -c -o $@ $<
addggroupframe.o: addggroupframe.c
$(CC) $(CFLAGS) -c -o $@ $<
scalebar.o: scalebar.c
$(CC) $(CFLAGS) -c -o $@ $<
createbutton.o: createbutton.c
$(CC) $(CFLAGS) -c -o $@ $<
createarrowbutton.o: createarrowbutton.c
$(CC) $(CFLAGS) -c -o $@ $<
createradiobutton.o: createradiobutton.c
$(CC) $(CFLAGS) -c -o $@ $<
createpalettebutton.o: createpalettebutton.c
$(CC) $(CFLAGS) -c -o $@ $<
createcheckbox.o: createcheckbox.c
$(CC) $(CFLAGS) -c -o $@ $<
createcyclebutton.o: createcyclebutton.c
$(CC) $(CFLAGS) -c -o $@ $<
createstrgadget.o: createstrgadget.c
$(CC) $(CFLAGS) -c -o $@ $<
createslider.o: createslider.c
$(CC) $(CFLAGS) -c -o $@ $<
createlistview.o: createlistview.c
$(CC) $(CFLAGS) -c -o $@ $<
togglebutton.o: togglebutton.c
$(CC) $(CFLAGS) -c -o $@ $<
docyclebutton.o: docyclebutton.c
$(CC) $(CFLAGS) -c -o $@ $<
setpalettebuttonpen.o: setpalettebuttonpen.c
$(CC) $(CFLAGS) -c -o $@ $<
removegadgetsafely.o: removegadgetsafely.c
$(CC) $(CFLAGS) -c -o $@ $<
setgflags.o: setgflags.c
$(CC) $(CFLAGS) -c -o $@ $<
lastgadget.o: lastgadget.c
$(CC) $(CFLAGS) -c -o $@ $<
lastborder.o: lastborder.c
$(CC) $(CFLAGS) -c -o $@ $<
lastitext.o: lastitext.c
$(CC) $(CFLAGS) -c -o $@ $<
moveitext.o: moveitext.c
$(CC) $(CFLAGS) -c -o $@ $<
initnewwindow.o: initnewwindow.c
$(CC) $(CFLAGS) -c -o $@ $<
# *** / LIB / ***
$(LIB): $(OBJS)
join $(OBJS) to $(LIB)
# *** / TEST / ***
test: test.c $(LIB)
$(CC) $(CFLAGS) -lnewlook -lamy -o $@ test.c
# *** / CLEAN / ***
clean:
delete $(OBJS) $(LIB)